package com.hui.platform.falseworkapi.service.business.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 权限表
 *
 * @author hui
 * @since 2020-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`tb_authorities`")
public class TbAuthorities implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("`user_id`")
    private Long userId;

    /**
     * 权限
     */
    @TableField("`authroity`")
    private String authroity;


    public static final String ID = "`id`";

    public static final String USER_ID = "`user_id`";

    public static final String AUTHROITY = "`authroity`";

}
